<template>
	<view class="content">
	</view>
</template>

<script lang="ts">
	import {
		onLoad
	} from '@dcloudio/uni-app'
	import {
		defineComponent,
		reactive,
		toRefs,
		inject,
		ref
	} from 'vue'

	const appIndex = defineComponent({
		name: 'appIndex',
		setup(props) {
			const app : any = inject('global')

			onLoad(() => {
				console.log('页面开始加载', props, app)
			})
			const data = reactive({
				info: ''
			})
			
			const popup = usePopup() 
			
			const maskClick = ref<boolean>(false)
			function openPop() {
			  // popup.showPopup()
				app.$router.push('/pages/form/ai')
			}
			
			function closePop() {
			  popup.closePopup()
			}
			
			return {
				...toRefs(data),
				app,
				maskClick,
				openPop,
				closePop
			}
		}
	})
	export default appIndex
</script>

<style lang="less" scoped>
	
</style>